<div id="SubordinateView">
<h2 class="tab-cont-h2">
     	<a href="javascript:;">企业中心</a> &gt; <a href="javascript:;">企业信息管理</a> &gt; <span>下属账号管理</span>
</h2>
<div class="SubordinateWrap " id="SubordinateWrap">
<div class="add-view-sub">
   <a href="javascript:;" class="add-sub jaddSub">新增</a>
</div>
 <div id="SubordinateCont">

 </div>
	</div>
	<div class="SubordinateAddWrap none" id="SubordinateAddWrap">
	<form class="" id="SubordinateAddForm">
	   <h2><span>新增下属账号</span></h2>
	   <div class="addSubordinateview">
	   	  <div class="dl">
	   	  	<div class="dt fl">账号名称：</div>
	   	  	<div class="dd fl">
	   	  		<input type="text" name="subusername" class="sub-input" id="subusername"/>
	   	  	</div>
	   	  </div>
	   	  <div class="dl">
	   	  	<div class="dt fl">昵称：</div>
	   	  	<div class="dd fl">
	   	  		<input type="text" name="subname" class="sub-input" id="subname"/>
	   	  	</div>
	   	  </div>
	   	  <div class="dl">
	   	  	<div class="dt fl">密码：</div>
	   	  	<div class="dd fl">
	   	  		<input type="password" name="subpassword" class="sub-input" id="subpassword"/>
	   	  	</div>
	   	  </div>
	   	  <div class="dl">
	   	  	<div class="dt fl">再次密码：</div>
	   	  	<div class="dd fl">
	   	  		<input type="password" name="comsubpassword" class="sub-input" id="comsubpassword"/>
	   	  	</div>
	   	  </div>
	   	  <div class="dl">
	   	  	<div class="dt fl">联系电话：</div>
	   	  	<div class="dd fl">
	   	  		<input type="text" name="subphone" class="sub-input" id="subphone"/>
	   	  	</div>
	   	  </div>
	   	  <div class="dl">
	   	  	<div class="dt fl">账户类型：</div>
	   	  	<div class="dd fl">
	   	  		<select class="sub-input" id="subType">
	   	  			<option value="1">超级管理员</option>
	   	  			<option value="10">企业管理</option>
	   	  			<option value="20">操作员</option>
	   	  			<option value="25">仓管</option>
	   	  			<option value="100">物流用户</option>
	   	  			<option value="120">海运物流</option>
	   	  		</select>
	   	  	</div>
	   	  </div>
	   	  <div class="dl button-dl">
	   	  	<input type="submit" name="" value="提交" class="save-submit" id="submitRed"/>
	   	  	<input type="button" name="" value="取消" class="cancel" id="cancelRed"/>
	   	  </div>
	   </div>
	   </form>
	</div>
</div>
<script type="text/javascript" src="jquery.validate.min.js"></script>
<script type="text/javascript" src="subordinate.js"></script>
<script type="text/template" id="subordinateTmp">
	 <table class="table table-hover table-responsive">
	    <tr class="thead">
		  <td class="td1">下属编号</td>
		  <td class="td2">账号名称</td>
		  <td class="td3">昵称</td>
		  <td class="td4">联系电话</td>
		  <td class="td5">状态</td>
		  <td class="td5">角色</td>
		  <td class="td5">操作</td>
		</tr>
		<tr class="trh7">
		  <td class=""></td>
		  <td class=""></td>
		  <td class=""></td>
		  <td class=""></td>
		  <td class=""></td>
		</tr>
		<%_.each(obj,function(item,i){%>
		<tr class="tbody tbody-<%=(i%2 == 0 ? 1:2)%>">
		  <td class="td1"><a href="javascript:;"><%=item.account_id%></a></td>
		  <td class=""><%=item.account%></td>
		  <td class="td3"><%=item.nick_name%></td>
		  <td class=""><%=item.phone%></td>
		  <td class=""><%if(item.state==1){%>启用<%}else if(item.state==10){%>停用<%}else if(item.state==-1){%>注销<%}%></td>
		  <td class="">
		  	<%if(item.identity==1){%>
                超级管理员
                <%}else if(item.identity==10){%>
                    企业管理
                <%}else if(item.identity==20){%>
                    操作员
               <%}else if(item.identity==25){%>
                    仓管
                <%}else if(item.identity==100){%>
                    物流用户 
                <%}else if(item.identity==120){%>
                    海运物流 
                <%}%>
		  </td>
		  <td class="td4"><a href="javascript:;" class="jDoneBtn" data-id="<%=item.account_id%>">启用</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:;" class="jStopBtn" data-id="<%=item.account_id%>">停用</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:;" class="jOutBtn" data-id="<%=item.account_id%>">注销</a></td>
		</tr>
		 <%})%>
	  </table>
</script>